import Vue from 'vue'
import Router from 'vue-router'
import Login from './pages/Login'
Vue.use(Router)

const router = new Router({
    routes:[{
        path:'/login',
        name:'login',
        component:Login
    },{
        path:'/logon',
        name:'logon',
        component:() => import('./pages/Logon.vue')
    },{
        path:'/index',
        name:'index',
        component:() => import('./pages/Index.vue') 
    },{
        path:'/course/:id',
        name:'course',
        component:() => import('./pages/Course.vue') 
    },{
        path:'/coursed',
        name:'coursed',
        component:() => import('./pages/CourseD.vue')
    },{
        path:'/homework',
        name:"homework",
        component:() => import('./pages/HomeWorkD.vue')
    },{
        path:'/test',
        name:"test",
        component:() => import('./pages/TestD.vue')
    },{
        path:'/talk',
        name:"talk",
        component:() => import('./pages/TalkD.vue')
    },{
        path:'/teacher',
        name:'teacher',
        component:() => import('./pages/Teacher.vue')
    }]
})

export default router